package ru.sanluck.lib;

import jakarta.persistence.*;
import lombok.Data;
import ru.sanluck.books.BookEntity;

/**
 * Карточка читателя
 */
@Data
@Entity
public class LibraryCardEntity {
    @Id
    @GeneratedValue(strategy = GenerationType.SEQUENCE)
    private Integer id;
    @ManyToOne
    @JoinColumn(name = "book_id")
    private BookEntity book;
    @ManyToOne
    @JoinColumn(name = "bookreader_id")
    private BookReaderEntity bookReader;
}
